package com.JdkProxy.firstexample.Animal.Animalimpl;

import com.JdkProxy.firstexample.Animal.Animal;

/**
 * @User c.c
 * @Since 2022/10/21
 * @Time 17:09
 * @Description
 */

public class Birds implements Animal {
  private String name;
  private int age;

  public Birds() {
  }

  public Birds(String name, int age) {
    this.name = name;
    this.age = age;
  }

  public void wakeup() {
    System.out.println("鸟儿起床了");
  }

  public void eat() {
    System.out.println("鸟儿在吃饭");
  }

  public void sleep() {
    System.out.println("鸟儿在睡觉");
  }

  public int Animalage() {
    return age;
  }

  public String Animalname() {
    return name;
  }
}
